package org.ekstrabilet.user.beans;

/**
 * User bean
 * provide getters and setter for user entity
 */

public class User {

	private int userID;
	private String login;
	private String name;
	private String sname;
	private String password;
	private String type;
	
	public String toString() {
		return userID + " " + login + " " + name + " " + sname + " " + password
				+ " " + type;
	}

	/**
	 * @return id of user
	 */
	public int getUserID() {
		return userID;
	}

	/**
	 * setter for user id number
	 * @param userID
	 */
	public void setUserID(int userID) {
		this.userID = userID;
	}

	/**
	 * @return user's login
	 */
	public String getLogin() {
		return login;
	}

	/**
	 * setter for user's login
	 * @param login
	 */
	public void setLogin(String login) {
		this.login = login;
	}

	/**
	 * @return name of user
	 */
	public String getName() {
		return name;
	}

	/**
	 * setter for user's name
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return surname of user
	 */
	public String getSname() {
		return sname;
	}

	/**
	 * setter for user's surname
	 * @param sname
	 */
	public void setSname(String sname) {
		this.sname = sname;
	}

	/**
	 * @return user's password (encrypted)
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * setter for user password (encrypted)
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return type of user
	 */
	public String getType() {
		return type;
	}

	/**
	 * setter for user type
	 * @param type
	 */
	public void setType(String type) {
		this.type = type;
	}

}
